//
//  SongListCollectionViewCell.m
//  WZLProduct
//
//  Created by boys on 16/3/25.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "SongListCollectionViewCell.h"

@implementation SongListCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.bgImg = [[UIImageView alloc] init];
        [self.contentView addSubview:_bgImg];
        
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel];
        self.titleLabel.font = FONT13;

        
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    [_bgImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.left.offset(0);
        make.bottom.offset(-30);
    }];
    [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.bgImg.mas_bottom);
        make.height.mas_equalTo(30);
        make.left.right.equalTo(self.bgImg);
    }];
    
    
}

@end
